/**
 * 
 */
package net.kong.sns.rest.client;

import net.kong.org.springframework.http.HttpStatus;
import net.kong.org.springframework.web.client.DefaultResponseErrorHandler;

/**
 * @author Wang Yuanming
 */
public class CustomeResponseErrorHandler extends DefaultResponseErrorHandler {

    @Override
    protected boolean hasError(HttpStatus statusCode) {
        return statusCode.value() != 200 && statusCode.value() != 500;
    }

}
